package com.holdtime.jtt809dataservice.common;

public enum Jtt809ErrorEnum {
    SUCCESS(0, "成功"),
    IP_ERROR(1, "IP 地址不正确"),
    JRM_ERROR(2, "接入码不正确"),
    USER_NOT_REGISTER(3, "用户没有注册"),
    PASSWORD_ERROR(4, "密码错误"),
    RESOURCE_NOT_ENOUGH(5, "资源紧张，稍后再连接"),
    OTHER(6, "其他");

    private int code;
    private String message;

    Jtt809ErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
